package com.ksp.api.sqlscan;

import java.sql.Connection;
import java.sql.DriverManager;

public class DBHandler {
	
	private static final String DBDRIVER = "com.mysql.jdbc.Driver";
	private static final String DBURL = "jdbc:mysql://localhost:3306?characterEncoding=utf-8";
	private static final String USERNAME = "root";
	private static final String PASSWORD = "111";
	private Connection conn = null;

	public Connection buildConnection() {
		try {
			Class.forName(DBDRIVER);
			this.conn = DriverManager.getConnection(DBURL, USERNAME, PASSWORD);
		}catch(Exception e) {
			e.printStackTrace();
		}
		return conn;
	}
}
